﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Beeldbankmvc.Code
{
    public static class Countries
    {
        public static String getCountryNameById(int? CoutryId)
        {
            String retVal = "";

            if(CoutryId != null)
            {
                retVal = getCountryNameById(CoutryId.ToString());
            }

            return retVal; 
        }

        public static String getCountryNameById(String CoutryId)
        {
            String retVal = "";

            if (!String.IsNullOrEmpty(CoutryId))
            {
                switch (CoutryId)
                {
                    case "1":
                        retVal = "NL";
                        break;
                    case "2":
                        retVal = "BE";
                        break;
                    case "3":
                        retVal = "DE";
                        break;
                }
            }

            return retVal;
        }
    }
}